/**
 * 和用户无关的信息存储
 */

// 定义数据的存储
const state = {
	// 系统顶部的伸缩按钮
	collapse: false
}

// 获取数据(可以对数据进行改变,过滤)
const getters = {
	getCollapse: (state) => {
		return state.collapse
	}
	
}

const mutations = {
	CHANGE_COLLAPSE: (state) => {
		state.collapse = !state.collapse
	}
}

const actions = {
	changeCollapse({commit}) {
		commit('CHANGE_COLLAPSE')
	}
}

export default {
	namespaced: true,
	state,
	getters,
	mutations,
	actions
}

